package com.javaclimb.music.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 评论
 */
@ApiModel(value = "com-javaclimb-music-domain-Comment")
@Data
@TableName(value = "`comment`")
public class Comment {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    /**
     * 收藏类型（0歌曲1歌单）
     */
    @TableField(value = "type")
    @ApiModelProperty(value = "收藏类型（0歌曲1歌单）")
    private Integer type;

    /**
     * 歌曲id
     */
    @TableField(value = "song_id")
    @ApiModelProperty(value = "歌曲id")
    private Integer songId;

    /**
     * 歌单id
     */
    @TableField(value = "song_list_id")
    @ApiModelProperty(value = "歌单id")
    private Integer songListId;

    /**
     * 评论内容
     */
    @TableField(value = "content")
    @ApiModelProperty(value = "评论内容")
    private String content;

    /**
     * 收藏时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "收藏时间")
    private Date createTime;

    /**
     * 评论点赞数
     */
    @TableField(value = "up")
    @ApiModelProperty(value = "评论点赞数")
    private Integer up;
}